package com.leo.blog.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

@Controller
@RequestMapping(value = "")
public class IndexController {
    @RequestMapping(value = {"","/"})
    public String index(){
        return "/frontend/index";
    }
    @RequestMapping(value = "/admin")
    public String admin(){
        return "/blogadmin/tologin";
    }
}
